import Request from '@utils/request';

const request = new Request('/api/bus/');

/**
 * 区域树结构
 */
export const regionGetTree = params => {
  return Promise.singleCache('Region', () => request.get(`Region/GetTree`, params));
};

/**
 * 详情
 */
export const articleInfo = params => {
  return request.get(`Article/Info`, params);
};

/**
 * 文章详情
 */
export const helperInfo = params => {
  return request.get(`Helper/Info`, params);
};

/**
 * 海报
 */
export const poster = () => {
  return Promise.singleCache('Poster', () => request.get(`Poster/List`), 3600 * 24);
};
